<?php
/**
 * Elgg footer
 * The standard HTML footer that displays across the site
 *
 * @package Elgg
 * @subpackage Core
 *
 */

// get the tools menu
//$menu = get_register('menu');

?>
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>




<div class="clearfloat"></div>

<div id="layout_footer">
<table width="958" height="300px" border="0" cellpadding="0" cellspacing="0">
    <tr height="40px">
        <td>
            <p class="f_title"><a href="<?php echo $vars['url']; ?>pg/blog/all">Newest Blogs</a></p>
        </td>
        <td>
            <p class="f_title">Stay in touch</p>
        </td>
        <td>
            <p class="f_title">Our Mission</p>
        </td>
    </tr>
	<tr>
		<td width="240" >

                <?php
                    

                    set_input('search_viewtype','list');
                    set_context('search');
                    
                    $content = elgg_list_entities(array(
                        'types' => 'object', 
                        'subtypes' => 'blog', 
                        'container_guid' => $vars['entity']->owner_guid, 
                        'limit' => 5, 
                        'list_type_toggle' => FALSE,
                        'full_view' => FALSE, 
                        'pagination' => FALSE,
                        ));

                    echo $content;
                ?>
		</td>

		<td width="360" align="right">
                    <div style="margin-bottom: 10px;">
                        <g:plusone ></g:plusone>
                        <a href="http://twitter.com/share" 
                           class="twitter-share-button" 
                           data-count="horizontal" 
                           data-url="http://www.producehere.com" 
                           data-via="ProduceHere">Tweet
                        </a>
                        <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
                    </div>
                    <div class="fb-like" 
                         style="margin-bottom: 10px;"
                         data-send="true" 
                         data-width="360" 
                         data-show-faces="true"></div>
                    <div class="fb-activity" 
                         data-site="www.producehere.com" 
                         data-width="360" 
                         data-height="170" 
                         data-header="false" 
                         data-colorscheme="light" 
                         border_color="#ddd"
                         data-font="verdana" 
                         data-recommendations="false"></div>
		</td>
                
                <td width="240" align="right">
                    <p>
                        <pre>
ProduceHere.com will provide the public with a means of sourcing local traceable quality food. This re-localisation of food & craft production will result in greater consumer satisfaction, with all of the health and environmental benefits entailed, increased profit for producers, a re-invigoration of local rural economies and profit for Produce Here Ltd. 
                        </pre>

                    </p>
		</td>            
	</tr>


</table>
</div><!-- /#layout_footer -->

<div class="clearfloat"></div>

</div><!-- /#page_wrapper -->
</div><!-- /#page_container -->
<!-- insert an analytics view to be extended -->
<?php
	echo elgg_view('footer/analytics');
?>
</body>
</html>
